package org.example.infrastructure.persistence.remote;


import org.example.infrastructure.persistence.remote.fallbackFactory.RemoteUrlShortenerGroupFallbackFactory;
import org.example.web.result.ResultInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "url-shortener-domain", contextId = "RemoteUrlShortenerGroupPersistence", path = "/url-shortener-domain/api/domain/v1/group", fallbackFactory = RemoteUrlShortenerGroupFallbackFactory.class)
public interface RemoteUrlShortenerGroupPersistence {
    /**
     * 获取短链接分组gid
     */
    @GetMapping("/selectGitList")
    ResultInfo<List<String>> selectGitListByUserName(@RequestParam String userName);

}
